<template>
  <view> 我的团队 </view>
</template>

<script>
import { distributionCoreMyTeam } from "@/api/common";
export default {
  data() {
    return {
      pageNum: 1,
      pageSize: 20,
      list: [],
      total: 0,
    };
  },
  onLoad() {
    // this.distributionCoreMyTeam();
    this.getRes();
  },
  computed: {
    getResult() {
      return distributionCoreMyTeam;
    },
  },
  methods: {
    getRes() {
      const { pageNum, pageSize } = this;
      this.getResult({
        pageNum,
        pageSize,
      }).then((res) => {
        this.dispose(res);
      });
    },
    dispose(res) {
      this.list = res.list;
      this.total = res.total;
      this.pageNum = this.pageNum + 1;
      this.hasMore = res.list < this.pageSize;
    },
  },
};
</script>

<style lang="scss"></style>
